import { TranslationMessages } from "ra-core";


const ChineseMessage: TranslationMessages = {
  ra: {
    action: {
      add_filter: "增加检索",
      update: "更新",
      add: "增加",
      back: "回退",
      bulk_actions: "选中%{smart_count}项",
      cancel: "取消",
      clear_input_value: "清空输入",
      clone: "克隆",
      close: "关闭",
      close_menu: "关闭菜单",
      confirm: "确认",
      create: "新建",
      delete: "删除",
      edit: "编辑",
      expand: "展开",
      export: "导出",
      list: "列表",
      open_menu: "打开菜单",
      refresh: "刷新",
      remove: "删除",
      remove_filter: "移除检索",
      save: "保存",
      search: "检索",
      show: "查看",
      sort: "排序",
      undo: "撤销",
      unselect: "反选",
      create_item: "创建"
    },
    boolean: {
      true: "是",
      false: "否",
      null: " ",
    },
    page: {
      create: "新建 %{name}",
      dashboard: "概览",
      edit: "%{name} #%{id}",
      empty: "无 %{name} ",
      error: "出现错误",
      invite: "要增加吗?",
      list: "%{name} 列表",
      loading: "加载中",
      not_found: "未发现",
      show: "%{name} #%{id}",
    },
    input: {
      file: {
        upload_several: "将文件集合拖拽到这里, 或点击这里选择文件集合.",
        upload_single: "将文件拖拽到这里, 或点击这里选择文件.",
      },
      image: {
        upload_several: "将图片文件集合拖拽到这里, 或点击这里选择图片文件集合.",
        upload_single: "将图片文件拖拽到这里, 或点击这里选择图片文件.",
      },
      references: {
        all_missing: "未找到参考数据.",
        many_missing: "至少有一条参考数据不再可用.",
        single_missing: "关联的参考数据不再可用.",
      },
      password: {
        toggle_visible: "隐藏密码",
        toggle_hidden: "显示密码",
      },
    },
    message: {
      about: "关于",
      are_you_sure: "您确定操作?",
      bulk_delete_content:
        "您确定要删除 %{name}? |||| 您确定要删除 %{smart_count} 项?",
      bulk_delete_title: "删除 %{name} |||| 删除 %{smart_count}项 %{name} ",
      bulk_update_title: "更新 %{name} |||| 更新 %{smart_count}项 %{name} ",
      delete_content: "您确定要删除该条目?",
      bulk_update_content: "您确定要更新 %{name}? |||| 您确定要更新 %{smart_count} 项?",
      delete_title: "删除 %{name} #%{id}",
      error: "客户端错误导致请求未完成.",
      invalid_form: "表单输入无效. 请检查错误提示",
      loading: "正在加载页面, 请稍候",
      no: "否",
      not_found: "您输入了错误的URL或者错误的链接.",
      unsaved_changes: "修改未保存. 放弃修改吗?",
      yes: "是",
      details: "详细情况",
      "custom": "自定义",
      not_authorized: "未授权",
      canceled: "已取消",
      logged_out: "已登出",
      i18n_error: "翻译有误"
    },
    navigation: {
      no_results: "结果为空",
      no_more_results: "页码 %{page} 超出边界. 试试上一页.",
      page_out_of_boundaries: "页码 %{page} 超出边界",
      page_out_from_end: "已到最末页",
      page_out_from_begin: "已到最前页",
      page_range_info: "%{offsetBegin}-%{offsetEnd} / %{total}",
      page_rows_per_page: "每页行数:",
      next: "向后",
      prev: "向前",
      skip_nav: "跳到内容",
    },
    sort: {
      sort_by: "按 %{field} %{order}",
      ASC: "升序",
      DESC: "降序",
    },
    auth: {
      auth_check_error: "请登录以继续",
      user_menu: "设置",
      username: "用户名",
      password: "密码",
      sign_in: "登录",
      sign_in_error: "验证失败, 请重试",
      logout: "退出",
    },
    notification: {
      updated: "条目已更新 |||| %{smart_count} 项条目已更新",
      created: "条目已新建",
      deleted: "条目已删除 |||| %{smart_count} 项条目已删除",
      bad_item: "不正确的条目",
      item_doesnt_exist: "条目不存在",
      http_error: "与服务通信出错",
      canceled: "取消动作",
      data_provider_error: "dataProvider错误. 请检查console的详细信息.",
      i18n_error: "无法加载指定语言包",
      logged_out: "会话失效, 请重连.",
      not_authorized: "未认证"
    },
    validation: {
      required: "必填",
      minLength: "必须不少于 %{min} 个字符",
      maxLength: "必须不多于 %{max} 个字符",
      minValue: "必须不小于 %{min}",
      maxValue: "必须不大于 %{max}",
      number: "必须为数字",
      email: "必须是有效的邮箱",
      oneOf: "必须为: %{options}其中一项",
      regex: "必须符合指定的格式 (regexp): %{pattern}",
    },
  },
  "Request failed with status code 401": "用户名或者密码错误",
  "LOGIN_UNATUH": "用户名或者密码错误",
  "TOKEN_EXPIRED": "登录过期了，请重新登录",
  pos: {
    search: "搜索",
    menu: {
      sales: "产品管理",
      tags: "标签管理",
      blogs: "各种帖子管理",
      planets: "星球管理",
      firms: "企业应用",
      videos: "视频管理",
      menuCourses: "课程管理",
      users: "用户管理",
    },
  },
  resources: {
    "role-tags": {
      name: "角色标签",
      fields: {
        tagName: "角色标签名",
        description: "描述",
      },
    },
    blogs: {
      name: "当红管理",
      fields: {
        createdAt: "创建时间",
        character: "人物",
        coverImage: "封面",
        title: "标题",
        summary: "摘要",
        body: "正文",
        videoId: "讲解视频",
      },
    },
    products: {
      name: "文玩产品",
      fields: {
        title: "标题",
        intro: "介绍",
        cover: "封面",
        createdAt: "创建时间",
        url: "原始链接",
        kind: "品类",
        attributes: "标签",
        productNumber: "货号",
        storage: '库存',
        originPrice: "原始价格"
      },
    },
    doubanbooks: {
      name: "豆瓣图书",
      fields: {
        id: "编号",
        title: "标题",
        body: "内容",
        updatedAt: "更新日期",
      },
    },
    books: {
      name: "图书管理",
      fields: {
        id: "编号",
        title: "标题",
        body: "内容",
        updatedAt: "更新日期",
      },
    },
    "product_tags": {
      name: "文玩标签",
      fields: {
        name: "标签",
        productCount: "商品数量",
      },
    },
    lessons: {
      name: "课程",
      fields: {
        title: "课程名",
        body: "课程内容",
        courseId: "所属系列",
        coverUrl: "封面",
        isGeneral: "是否为通用课程",
        isPublished: "是否发布",
        planetId: "所属星球",
        roleIds: "角色",
        price: "价格",
        vipPrice: "VIP价格",
        tagIds: "标签",
      },
    },
    "lesson-nodes": {
      name: "课节",
      fields: {
        title: "标题",
        body: "内容",
        lessonId: "所属课程",
        coverId: "封面",
        "cover.originUrl": "封面",
        isPublished: "是否发布",
      },
    },
    exams: {
      name: "测验管理",
      fields: {
        name: "题目",
        type: "题型",
        score: "分值",
        order: "序号",
        options: "选项",
        answer: "答案",
        "lessonNode.lessonId": "所属课程",
        lessonNodeId: "所属章节",
        optionValue: "选项值",
        optionName: "选项名称",
        actions: "操作",
      },
    },
    firms: {
      name: "应用",
      fields: {
        name: "应用名",
        title: "应用标题",
        slogan: "标语",
        appKey: "密钥",
        appUrls: "应用链接",
        description: "描述",
      },
    },

    users: {
      name: "用户",
    },

    "fake-users": {
      name: "机器人 |||| 机器人",
      fields: {
        avatar: "头像",
        nickname: "昵称",
        phone: "电话",
        email: "邮箱",
        personalNote: "个性签名",
        postFreq: "发帖频率",
        followFreq: "粉人频率",
        updatedAt: "最后更新",
        username: "用户名",
        gender: "性别",
        profile: {
          avatar: "头像",
        },
      },
    },

    "perfer-tags": {
      name: "偏好标签",
      fields: {
        tagName: "标签名",
        description: "描述",
        roleIds: "角色相关标签",
      },
    },
    videos: {
      name: "视频",
      fields: {},
    },
    planets: {
      name: "星球",
      fields: {
        name: "星球名称",
        level: "等级",
        limit: "所需分数",
      },
    },
    slides: {
      name: "轮播图",
      fields: {
        position: "位置",
      },
    },
  },
};

export default ChineseMessage;
